﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="~/css/style.css" rel="stylesheet" />
    <script src="~/js/jquery.js"></script>
    <script src="~/js/lib/layer/layer.js"></script>
    <script type="text/javascript">
        $(function () {
            //顶部导航切换
            $(".nav li a").click(function () {
                $(".nav li a.selected").removeClass("selected")
                $(this).addClass("selected");
            })
            $("#lonOut").click(function () {
                $.post("/Login/Logout", {
                    //ReturnUrl: "/Home/Main"
                }, function (data) {
                    if (data.message === "退出成功") {
                        top.location.href = "../../"
                    }
                    else {
                        alert("退出失败");
                    }
                }, "json");
            });
        });
        function getMsgNum() {
            var isSee = $("#msg").val();
            $(document).ready(function () {
                $.ajax({
                    type: "POST",
                    url: "/Message/GetUnMessageList",
                    dataType: "json",
                    success: function (data) {
                        $("#sumMsg").text(data.count);
                    }
                });
            });
        }
        setInterval(function () {
            getMsgNum();
        }, 500);
    </script>
</head>
<body style="background:url(/images/topbg.gif) repeat-x;">
    <div class="topleft">
        <a href="Main" target="_parent"><img src="~/images/logo.png" title="系统首页" /></a>
    </div>
    <ul class="nav">
        <li><a href="default.html" target="rightFrame" class="selected"><img src="~/images/icon01.png" title="工作台" /><h2>工作台</h2></a></li>
        <li><a href="imgtable.html" target="rightFrame"><img src="~/images/icon02.png" title="模型管理" /><h2>模型管理</h2></a></li>
        <li><a href="imglist.html" target="rightFrame"><img src="~/images/icon03.png" title="模块设计" /><h2>模块设计</h2></a></li>
        <li><a href="tools.html" target="rightFrame"><img src="~/images/icon04.png" title="常用工具" /><h2>常用工具</h2></a></li>
        <li><a href="computer.html" target="rightFrame"><img src="~/images/icon05.png" title="文件管理" /><h2>文件管理</h2></a></li>
        <li><a href="tab.html" target="rightFrame"><img src="~/images/icon06.png" title="系统设置" /><h2>系统设置</h2></a></li>
    </ul>
    <div class="topright">
        <ul>
            <li><span><img src="~/images/help.png" title="帮助" class="helpimg" /></span><a href="#">自定义</a></li>
            <li><a href="#">自定义</a></li>
            <li>
                <a id="lonOut" style="cursor:pointer;">退出</a>
            </li>
        </ul>
        <div class="user" >
            <span>admin</span>
            <i>消息</i>
            <b id="MsgId"><a href="/Message/Index?MenuId=82&RoleId=@ViewData["RoleUserId"]"  target="rightFrame" id="sumMsg">0</a></b>
        </div>
    </div>
</body>
</html>